function deepCopy(obj) {
    let containner;
    let dataType = getDataType(obj);
    if (dataType === '[object Object]') {
        for (let attr in obj) {
            
        }

    } else if (dataType === '[object Array]') {
        containner = [];
        for (const item of obj) {
            containner.push(item);
        }
    }

    return containner;
        
}
function getDataType(obj) {
    return Object.prototype.toString.call(obj);
}
console.log(deepCopy([1, 2, 3, 4, 5, 6]));
